<%= error_messages_for :mugshot %> 
<% form_for(:mugshot, :url => {:action=>'create'},  
                      :html => { :multipart => true }) do |f| -%>  
  <p>  
    <label for="mugshot">Upload A Mugshot:</label>  
    <%= f.file_field :uploaded_data %>  
  </p>  
  <p>  
    <%= submit_tag 'Create' %>  
  </p>  
<% end -%>